package routers

import (
	"VirtualCamera/controllers/admin"

	"github.com/gin-gonic/gin"
)

func AdminRoutersInit(r *gin.Engine) {
	//middlewares可配置中间件
	adminRouters := r.Group("/admin")
	{
		//adminRouters.GET("/login", admin.LoginController{}.Index)
		adminRouters.POST("/doLogin", admin.LoginController{}.DoLogin)
		//adminRouters.GET("/loginOut", admin.LoginController{}.LoginOut)
		adminRouters.POST("/regist", admin.RegistController{}.Regist)
		adminRouters.GET("/getUserInfo", admin.RegistController{}.GetUserInfo)
	}
}
